Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransportVerifyShardBeforeCloseAction should force a flush (#38401) #38507

Merged
merged 2 commits into from
Feb 6, 2019

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Feb 6, 2019

This commit changes the TransportVerifyShardBeforeCloseAction so that it
always forces the flush of the shard. It seems that #37961 is not sufficient to
ensure that the translog and the Lucene commit share the exact same max
seq no and global checkpoint information in case of one or more noop
operations have been made.

The BulkWithUpdatesIT.testThatMissingIndexDoesNotAbortFullBulkRequest
and FrozenIndexTests.testFreezeEmptyIndexWithTranslogOps test this trivial
situation and they both fail 1 on 10 executions.

Backport of 510829f
Relates to #33888

…8401)

This commit changes the `TransportVerifyShardBeforeCloseAction` so that it 
always forces the flush of the shard. It seems that elastic#37961 is not sufficient to 
ensure that the translog and the Lucene commit share the exact same max 
seq no and global checkpoint information in case of one or more noop 
operations have been made.

The `BulkWithUpdatesIT.testThatMissingIndexDoesNotAbortFullBulkRequest` 
and `FrozenIndexTests.testFreezeEmptyIndexWithTranslogOps` test this trivial 
situation and they both fail 1 on 10 executions.

Relates to elastic#33888
@tlrx tlrx added :Distributed Indexing/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. backport labels Feb 6, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@jasontedor jasontedor changed the base branch from 6.x to 6.7 February 6, 2019 13:06
@jasontedor jasontedor reopened this Feb 6, 2019
@tlrx
Copy link
Member Author

tlrx commented Feb 6, 2019

@elasticmachine test this please

1 similar comment
@tlrx
Copy link
Member Author

tlrx commented Feb 6, 2019

@elasticmachine test this please

@tlrx tlrx merged commit 2a2b613 into elastic:6.7 Feb 6, 2019
@tlrx tlrx deleted the always-flush-on-6.x branch February 6, 2019 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Distributed Indexing/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants